Component({
  mixins: [],
  data: {},
  props: {
    params: {
      category:"earn"
    },
    ruter: "",
    itemData:{},
  },
  didMount() {
    let {itemData} = this.props;
    itemData.complete_time = itemData.complete_time?new Date(itemData.complete_time).format('yyyy-MM-dd hh:mm:ss'):''
    this.setData({
      item:itemData
    })
  },
  didUpdate() {},
  didUnmount() {},
  methods: {
    navGetTo(){
      my.navigateTo({
        url: this.props.ruter,
       
        
        success: () => {
          
        },
        fail: () => {
          
        },
        complete: () => {
          
        }
      });
    }
  },
});
